package band.wukong.practice.java.core.topic.concurrency.atomic;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author wukong(wukonggg@139.com)
 */
public class AtomicIntegerSample {

    static AtomicInteger ai = new AtomicInteger(1);

    public static void main(String[] args) {
        System.out.println(ai.getAndIncrement());
        System.out.println(ai.get());
    }

}
